= simple_form_for(@sales_firm, remote: true) do |f|
  table.table.table-bordered
    tr
      th style='width:120px' 公司名
      td colspan=3
        = f.input_field :name, class: 'form-control normal-input', style: 'min-width: 400px' , 'v-model':'firm.name'
        = link_to '查重','javascript: void(0);', class: 'btn btn-warning push-10-l'
    tr
      th 字号
      td = f.input_field :short_name, class: 'form-control', style:'display: inline-block; width: 160px', 'v-model':'firm.short_name'
      th style='width:120px' 网址
      td = f.input_field :website, class: 'form-control', 'v-model': 'firm.website'
    tr
      th 省份城市
      td
        = f.input_field :province_id, as: :select,
                style: 'width: 150px; display: inline-block',
                prompt: '请选择省份', class: 'form-control relation_province_selector',
                collection: ::Base::Province.options,
                'v-model':'firm.province_id',
                'v-on:change':''
        = f.input_field :city_id, as: :select, collection: ::Base::City.options(@sales_firm.province_id),
                style: 'width: 150px; display: inline-block',
                'v-model':'firm.city_id', class: 'form-control relation_city_selector'
      th 公司地址
      td = f.input_field :address, class: 'form-control', 'v-model':'firm.address'
    tr
      th 公司电话
      td = f.input_field :phone, class: 'form-control', 'v-model':'firm.phone'
      th 公司传真
      td = f.input_field :fax, class: 'form-control', 'v-model':'firm.fax'
    tr
      th 公司邮箱
      td = f.input_field :email, class: 'form-control', 'v-model':'firm.email'
    /= f.input :name
    /= f.input :province_id
    /= f.input :city_id
    /= f.input :short_name
    /= f.input :address
    /= f.input :website
    /= f.input :phone
    /= f.input :fax
    /= f.input :email
    /= f.input :rating
    /= f.input :parent_id

